//
//  CYAdvertTableViewCell.m
//  cyydt
//
//  Created by chu on 2019/1/14.
//  Copyright © 2019 chu. All rights reserved.
//

#import "CYAdvertTableViewCell.h"

@implementation CYAdvertTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.adverBtn.layer.borderColor = RGBOF(0x2A90D7).CGColor;
    self.adverBtn.layer.borderWidth = 1;
    self.adverBtn.layer.masksToBounds = YES;
    self.adverBtn.layer.cornerRadius = 2;
}

- (void)setModel:(CYProjectModel *)model{
    _model = model;
    self.titleLabel.text = model.title;
    self.cateLabel.text = model.big_catname;
    self.timeLabel.text = model.created_time;
    [self.imageView1 sd_setImageWithURL:[NSURL URLWithString:model.dpa_img_1] placeholderImage:[UIImage imageWithColor:[UIColor lightGrayColor] Size:self.imageView1.frame.size]];
    [self.imageView2 sd_setImageWithURL:[NSURL URLWithString:model.dpa_img_2] placeholderImage:[UIImage imageWithColor:[UIColor lightGrayColor] Size:self.imageView2.frame.size]];
    [self.imageView3 sd_setImageWithURL:[NSURL URLWithString:model.dpa_img_3] placeholderImage:[UIImage imageWithColor:[UIColor lightGrayColor] Size:self.imageView3.frame.size]];

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
